﻿/// <Summary> 
/// $Author: Nikhil Chinchwade 
/// This file contains MonitoringConfig Class

/// $Creation Date : 
/// </summary>
/// 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using MindTree.PerfWorkbench.Azure.Monitor.Core;

namespace MindTree.PerfWorkbench.Azure.Monitor
{
    /// <summary>
    /// Interaction logic for MonitoringConfig.xaml
    /// </summary>
    public partial class MonitoringConfig : Window
    {
        public static List<AzureRoleInstance> Azapp
        {
            get
            {
                List<AzureRoleInstance> instances = new List<AzureRoleInstance>();
                foreach (AzureRole role in AzureMonInstanceContext.AzureApp.AppDeployment[0].Roles)
                {
                    foreach (AzureRoleInstance instance in role.Instances)
                    {
                        instances.Add(instance);
                    }
                }
                return instances;
            }
            set
            {
                //AzureMonInstanceContext.AzureApp.AppDeployment = value;
            }
        }

        public MonitoringConfig()
        {
            InitializeComponent();
        }
    }
}
